<include file='Base:header' />
  <!--内容范围 开始-->
  <section class="content-wrap">
    <div class="container">
      <div class="row-fluid main-content">
        <div class="span12 banner" id='banner'>
        	<volist name='banner' id='vo'>
	          <a href="{$vo.slide_url}">
	            <img src="{$vo.slide_pic}" lang='{$vo.slide_lang}' alt="" style='height:450px;width:1170px;display:none'>
	          </a>
        	</volist>
        </div>
        <!--可循环 开始-->
        <volist name='list' id='vo'>
         	
	        <div class="row-fluid category">
	        <!-- 左边 -->
	          <article class="span4 submenu">
	            <h2>{$vo.name}</h2>
	            <hr/>
	            <volist name='vo.child' id='child' offset='0' length='2'>
		            <div class="btn-cont">
		              <a class="btn btn-link" href="{:U('product/index',['tid'=>$vo[id],'tsid'=>$child[id]])}">{$child.name}</a>
		            </div>
	            
	            </volist>
	            <div class="btn-cont">
	              <a class="btn btn-link" href="{:U('product/index',['tid'=>$vo[id]])}">全部</a>
	            </div>
	            <div class="img-cont">
	              <img src="{$vo.cover}" style='height:130px;width:308px;'>
	            </div>
	          </article>
	           <!-- 右边 -->
          	<php>
          		$proInfo = $prolist[$vo['id']];
          		$proInfoSub=[];
          	</php>
	          <volist name='proInfo' id='pro' key='kpro'>
	          	
          			
	          		<lt name='kpro' value='3'>
			          <article class="span4 product">
			            <h3>{$pro[name]}</h3>
			            <p>{$pro[post_title]}</p>
			            <div class="img-cont">
			              <a href="{:jump_detail($pro[id],$pro[href])}"><img src="{$pro[thumb]}" style='height:316px;width:308px;'></a>
			            </div>
			          </article>
			          <else />
			            <assign name="proInfoSub[]" value="$pro" />
			          </lt>
	          </volist>
	        </div>
	        <!-- 超过2个的 -->

	        	<for start='0' end='count($proInfoSub)' name='i'>
	        			
	        		<php>
	        			$pro = $proInfoSub[$i];
	        			$islow = $i % 3;
	        		</php>
	        		
 					<if condition="$islow eq 0">
 						<div class="row-fluid subclass">
 						
 					</if>
						
						<article class="span4 product">
							<h3>{$pro[name]}</h3>
							<p>{$pro[post_title]}</p>
							<div class="img-cont">
								<a href="{:jump_detail($pro[id],$pro[href])}"><img src="{$pro[thumb]}" style='height:316px;width:308px;'></a>
							</div>
						</article>
					<if condition="(empty($proInfoSub[$i+1]) eq true) OR ($islow eq 2)">
						</div>
					</if> 
				</for>
					
        </volist>
        <!--可循环 结束-->

<!--         <div class="row-fluid category">
          <article class="span4 submenu">
            <h2>护肤</h2>
            <hr/>
            <div class="btn-cont">
              <a class="btn btn-link" href="#">新品</a>
            </div>
            <div class="btn-cont">
              <a class="btn btn-link" href="#">畅销</a>
            </div>
            <div class="btn-cont">
              <a class="btn btn-link" href="#">全部</a>
            </div>
            <div class="img-cont">
              <img src="http://via.placeholder.com/308x130">
            </div>
          </article>
          <article class="span4 product">
            <h3>新品</h3>
            <p>10.21 水漾雪葩</p>
            <div class="img-cont">
              <img src="http://via.placeholder.com/308x316">
            </div>
          </article>
          <article class="span4 product">
            <h3>新品</h3>
            <p>10.21 水漾雪葩</p>
            <div class="img-cont">
              <img src="http://via.placeholder.com/308x316">
            </div>
          </article>
        </div> -->
      </div>
    </div>
  </section>
  <!--内容范围 结束-->
<script>

$("#banner img[lang='"+_langs+"']").show()
	
</script>


<include file='Base:footer' />